use super::hitls_type::{HITLS_Config, HITLS_Ctx};
pub const HITLS_COOKIE_GENERATE_SUCCESS: u32 = 1;
pub const HITLS_COOKIE_GENERATE_ERROR: u32 = 0;
pub const HITLS_COOKIE_VERIFY_SUCCESS: u32 = 1;
pub const HITLS_COOKIE_VERIFY_ERROR: u32 = 0;
pub type HITLS_AppGenCookieCb = ::std::option::Option<
    unsafe extern "C" fn(ctx: *mut HITLS_Ctx, cookie: *mut u8, cookieLen: *mut u32) -> i32,
>;
pub type HITLS_AppVerifyCookieCb = ::std::option::Option<
    unsafe extern "C" fn(ctx: *mut HITLS_Ctx, cookie: *const u8, cookieLen: u32) -> i32,
>;
unsafe extern "C" {
    pub fn HITLS_CFG_SetCookieGenCb(
        config: *mut HITLS_Config,
        callback: HITLS_AppGenCookieCb,
    ) -> i32;
}
unsafe extern "C" {
    pub fn HITLS_CFG_SetCookieVerifyCb(
        config: *mut HITLS_Config,
        callback: HITLS_AppVerifyCookieCb,
    ) -> i32;
}
